<?php  
 // session_start();

      if(!empty($_POST)){
          
 

         print_r($_POST);die;

             $_rows = add('power',$_POST);
             // echo $_rows;die;

            //如果$_rows>0说明成功
             // echo $_rows;die;
            if ($_rows>0) {
                echo '<script> alert ("权限添加成功");location.href="index.php?c=power&a=add&admin=1";</script>';die;
                   
            }else{

                echo '<script> alert ("权限添加失败");history.go(-1);</script>';
                    die;
            }


            }


            $data = getSelect('power','pid=0');
            // print_r($data);die;



            //链接news.html的语句
            include (VIEW_PATH.$admin.'/layout.html');

            ?>

